/**
 * 教师管理
 */

import request from "@/utils/request.js"

// 教师列表
export function getTeacherListDataApi(data) {
    return request({
      url: '/edu/teacher/list',
      method: 'POST',
      params:data
    })
}

// 添加教师
export function addTeacherApi(data) {
    return request({
      url: '/edu/teacher/add',
      method: 'POST',
      params:data
    })
}


// 删除教师
export function removeTeacherApi(data) {
    return request({
      url: '/edu/teacher/remove',
      method: 'POST',
      params:data
    })
}


// 导出
export function exportApi() {
    return request({
      url: '/edu/teacher/export',
      responseType: 'blob',
      method: 'POST'
    })
}

// 查看教师详细信息
export function getTeacherItemApi(data) {
  return request({
    url: '/edu/teacher/info',
    method: 'POST',
    params:data
  })
}


// 学院管理导航树
export function colleageTreeDataApi() {
    return request({
      url: "/edu/colleage/colleageTreeData",
      method: "POST",
    });
}

// 根据条件查询专业列表
export function majorListApi(data) {
    return request({
      url: "/edu/major/list",
      method: "post",
      params: data,
    });
}

// 编辑教师
export function editTeacherApi(data) {
  return request({
    url: "/edu/teacher/edit",
    method: "post",
    params: data,
  });
}

// 班级数据
export function getMajorList(data) {
  return request({
    url: "/edu/class/list",
    method: "post",
    params: data,
  });
}

// 添加教师岗位
export function addPostApi(data) {
  return request({
    url: "/edu/teacherPost/add",
    method: "post",
    params: data,
  });
}

// 民族
export function getNationApi(data) {
  return request({
    url: "/edu/typeData/list",
    method: "post",
    params: data,
  });
}

// 教师岗位
export function getPostListApi(data) {
  return request({
    url: "/edu/typeData/list",
    method: "post",
    params: data,
  });
}


export function upLoadImgApi(data) {
  return request({
    url: "/file/upload",
    ContentType: 'multipart/form-data',
    method: "post",
    params: data,
  });
}

// 导入
export function ImportExaminationRoomApi(data) {
  return request({ 
    ContentType: 'multipart/form-data',
    url: "/edu/teacher/importData",
    method: 'POST', 
    params:data
  })
}
